package edu.mis.core.base;

import com.jfinal.plugin.activerecord.Model;

public abstract class BaseService {
	public void save(Model<?> model){
		model.save();
	}
	public void update(Model<?> model){
		model.update();
	}
	public void delete(Model<?> model,int ID){
		model.deleteById(ID);
	}
	public Model<?> findById(Model<?> model,int ID){
		return model.findById(ID);
	} 
}
